Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.theme.fragments

Documentation

Contributions to NXThemes Fragments. All generic Model and Fragment types are registered here.

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.theme.fragments">
  <documentation>
    Contributions to NXThemes Fragments.
    All generic Model and Fragment types are registered here.
    @author Jean-Marc Orliaguet (jmo@chalmers.se)
  </documentation>
  
  <require>org.nuxeo.theme.core</require>

  <extension target="org.nuxeo.theme.services.ThemeService"
    point="models">

    <model name="text">
      <class>org.nuxeo.theme.models.Text</class>
    </model>

    <model name="html">
      <class>org.nuxeo.theme.models.Html</class>
    </model>

    <model name="region">
      <class>org.nuxeo.theme.models.Region</class>
    </model>

    <model name="navigation">
      <class>org.nuxeo.theme.models.Navigation</class>
      <contains>navigation item</contains>
    </model>
    
    <model name="navigation item">
      <class>org.nuxeo.theme.models.NavigationItem</class>
    </model>
    
    <model name="menu">
      <class>org.nuxeo.theme.models.Menu</class>
      <contains>menu item</contains>
    </model>
    
    <model name="menu item">
      <class>org.nuxeo.theme.models.MenuItem</class>
      <contains>menu item</contains>
    </model>

    <model name="feed">
      <class>org.nuxeo.theme.models.Feed</class>
      <contains>feed item</contains>
    </model>
    
    <model name="feed item">
      <class>org.nuxeo.theme.models.FeedItem</class>
    </model>  

  </extension>

  <extension target="org.nuxeo.theme.services.ThemeService"
    point="fragments">

    <fragment name="generic fragment">
      <class>org.nuxeo.theme.fragments.GenericFragment</class>
      <dynamic>false</dynamic>
    </fragment>

    <fragment name="text fragment">
      <class>org.nuxeo.theme.fragments.TextFragment</class>
      <model-type>html</model-type>
      <dynamic>true</dynamic>
    </fragment>

    <fragment name="region fragment">
      <class>org.nuxeo.theme.fragments.RegionFragment</class>
      <model-type>region</model-type>
      <dynamic>false</dynamic>
    </fragment>

  </extension>

</component>